<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<title>物业管理软件</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta name="description" content="Charisma, a fully featured, responsive, HTML5, Bootstrap admin template.">
	<meta name="author" content="Muhammad Usman">
    <#include "*/pubcss.ftl">
</head>

<body>
	<#include "*/top.ftl">
	<!-- topbar ends -->
	<div class="container-fluid">
		<div class="row-fluid">
			<#include "*/left.ftl">
			<div id="content" class="span10">
			<!-- content starts -->
			<div>
				<ul class="breadcrumb">
					<li>
						<a href="#">基础资料</a> <span class="divider">/</span>
					</li>
					<li>
						<a href="#">房费管理</a>
					</li>
				</ul>
			</div>
			<form class="form-horizontal"  action="javascript:saveRoomFees()">
		    <div class="row-fluid sortable">
			    <button type="submit" class="btn btn-primary">保存</button>
		    </div>
			<div class="row-fluid sortable">		
				<div class="box span12">
					<div class="box-header well" data-original-title>
						<h2><i class="icon-user"></i>房费信息</h2>
					</div>
					<div class="box-content">
						<table class="table table-bordered table-striped table-condensed">
						  <thead>
							  <tr>
								  <th>序号</th>
								  <th>小区名称</th>
								  <th>收费规则</th>
								  <th>单价</th>
								  <th>说明</th>
							  </tr>
						  </thead>   
						  <tbody>
							<#assign index=1>
						    <#list communitys as community>
							<tr>
								<td>${index}<input class="input-xlarge focused" id="cid" name="cid" type="hidden" value="${(community.cid)?if_exists}"></td>
								<td class="center">${(community.cname)?if_exists}</td>
								<td class="center">
								 <select id="rcrid" name="rcrid">
								   <#list chargeRules as chargeRule>
								   <#if (chargeRule.crid)?if_exists==(community.roomrule.crid)?if_exists>
								   <option value="${(chargeRule.crid)?if_exists}" selected>${(chargeRule.crname)?if_exists}</option>
								   <#else>
								   <option value="${(chargeRule.crid)?if_exists}">${(chargeRule.crname)?if_exists}</option>
								   </#if>
								   </#list>
								 </select>
								</td>
								<td class="center"><input class="input-xlarge focused" id="rprice" name="rprice" type="text" value="${(community.rprice)?if_exists}"></td>
								<td class="center"><input class="input-xlarge focused" id="rcontent" name="rcontent" type="text" value="${(community.rcontent)?if_exists}"></td>
							</tr>
							<#assign index=index+1>
							</#list>
							
						  </tbody>
					  </table>   
					</div>
				</div><!--/span-->
			
			</div><!--/row-->
		    </form> 
       
			<!-- content ends -->
			</div><!--/#content.span10-->
		</div><!--/fluid-row-->

		
	</div><!--/.fluid-container-->

	<#include "*/infotemplate/alert.ftl">
    <#include "*/infotemplate/saveinfo.ftl">
	<#include "*/pubjs.ftl">
	<script src='${base}/script/base/roomfees_manager.js'></script>	
</body>
</html>
